<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>正常</title>
	<link rel="stylesheet" type="text/css" href="css/reset.css">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<style type="text/css">
.container{
	width: 100%;
	height: auto;
	background: red;
}
.container ul li{
	float: left;
	width: 21%;
	height: auto;
	margin: 10px 2%;
}
.container ul li img{max-width: 100%;}

	</style>
</head>
<body>
<div class="container">
	<ul>
		<li><img src="images/test.jpg" alt=""></li>
		<li><img src="images/test.jpg" alt=""></li>
		<li><img src="images/test.jpg" alt=""></li>
		<li><img src="images/test.jpg" alt=""></li>
		<li><img src="images/test.jpg" alt=""></li>
		<li><img src="images/test.jpg" alt=""></li>
		<li><img src="images/test.jpg" alt=""></li>
		<li><img src="images/test.jpg" alt=""></li>
	</ul>
</div>
</body>
</html>